package task3;

public class MobileTest {
    public static void main(String[] args) {
        SimCard simcard = new SimCard(SimCardTypeEnum.LARGE.get(), "23213aad", "abbc", "123456", 20, 100, 20);
        simcard.show();
        System.out.println("----------------------------");

        Plan callplan = new CallPlan(20, 50, 20.3);
        System.out.println("通过继承多态");
        callplan.show();
        System.out.println("----------------------------");

        Plan netplan = new NetPlan(20, 15.3);
        System.out.println("通过继承多态");
        netplan.show();
        System.out.println("----------------------------");
//
//        UserCost usercost = new UserCost(15, 20, 13.3);
//        usercost.show();
//        System.out.println("----------------------------");

        CallInterface callplan1 = new CallPlan(20, 15, 20.3);
        System.out.println("通过接口多态");
        callplan1.call(15, simcard);
        System.out.println("----------------------------");

        NetInterface netplan1 = new NetPlan(20, 13.3);
        System.out.println("通过接口多态");
        netplan1.net(21, simcard);

    }
}
